package Day11.interface07;

public class Demo07 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.eat();
        dog.voice();
        dog.jd();

        Pig pig = new Pig();
        pig.eat();
        pig.voice();

        System.out.println("------------");
        Sheep sheep = new Sheep();
        sheep.jd();
    }
}
